//2019.1.27 Ӽֽл
procedure TDXDrawCanvas.BoldTextOutZ( X, Y, Z, fcolor: Integer; Str: string);
var
  tStr, temp        : string;
  i, Len, n, aline  : Integer;
label
  Loop1;
begin
  tStr := Str;
  n := 0;
  if tStr <> '' then begin
    Loop1:
    Len := Length(tStr);
    temp := '';
    i := 1;
    while True do begin
      if i > Len then Break;

      if Byte(tStr[i]) >= 128 then begin
        temp := temp + tStr[i];
        Inc(i);
        if i <= Len then
          temp := temp + tStr[i]
        else
          Break;
      end else
        temp := temp + tStr[i];
      //clGray

      if (temp <> '') and (tStr[i] = #$0D) and ((i + 1 <= Len) and (tStr[i + 1] = #$0A)) then begin
        BoldTextOut( X, Y + n * 14, fcolor,  temp);
        tStr := Copy(tStr, i + 1 + 1, Len - i - 1);
        if tStr <> '' then Inc(n);
        temp := '';
        Break;
      end;

      aline := TextWidth(temp);
      if (aline > Z) and (temp <> '') then begin
        BoldTextOut( X, Y + n * 14, fcolor, temp);
        tStr := Copy(tStr, i + 1, Len - i);
        if tStr <> '' then Inc(n);
        temp := '';
        Break;
      end;
      Inc(i);
    end;
    if temp <> '' then begin
      BoldTextOut( X, Y + n * 14, fcolor,temp);
      tStr := '';
    end;
    if tStr <> '' then
      goto Loop1;
  end;
end;